package com.qf.main.login.service;

import com.qf.main.login.common.vo.SysUserVo;
import com.qf.main.login.entity.SysUser;
import com.qf.main.login.realm.UserToken;

/**
 * @author chengqiang
 * @Create 2024-01-23-16:05
 * @Description:
 */
public interface SmsService {
    String REDIS_SMS_CODE_KEY_PREFIX = "sms:code:phone:";
    String SMS_CODE_TEMPLATE_PARAM = "code";
    String SMS_RESPONSE_RESULT_OK = "OK";

    String sendSms(String phone);

    Integer registerValid(String phone,String code);

    SysUserVo loginPhone(UserToken userToken);
}
